using System.Collections;
using System.Collections.Generic;
using Unity.Netcode;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;

public class GameUIManager : MonoBehaviour
{

    [SerializeField]
    private Button serverbutton = null;
    [SerializeField]
    private Button clientButton = null;
    [SerializeField]
    private Button hostButton = null;
    // Start is called before the first frame update
    void Start()
    {
        Debug.Log("GameUIManager");

        serverbutton.onClick.AddListener(() => {
            Debug.Log("Server Click");
            NetworkManager.Singleton.StartServer();
        });
        clientButton.onClick.AddListener(() => {
            Debug.Log("client Click");
            NetworkManager.Singleton.StartClient();
        });
        hostButton.onClick.AddListener(() => {
            Debug.Log("host Click");
            NetworkManager.Singleton.StartHost();
        });
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
